/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.cggveritas.crewintranet.jms.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Alassane
 */
@Entity
@Table(name = "cv_statuedepointage")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "CvStatuedepointage.findAll", query = "SELECT c FROM CvStatuedepointage c"),
    @NamedQuery(name = "CvStatuedepointage.findByCode", query = "SELECT c FROM CvStatuedepointage c WHERE c.code = :code"),
    @NamedQuery(name = "CvStatuedepointage.findBySignification", query = "SELECT c FROM CvStatuedepointage c WHERE c.signification = :signification")})
public class CvStatuedepointage implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "code")
    private String code;
    @Basic(optional = false)
    @Column(name = "signification")
    private String signification;

    public CvStatuedepointage() {
    }

    public CvStatuedepointage(String code) {
        this.code = code;
    }

    public CvStatuedepointage(String code, String signification) {
        this.code = code;
        this.signification = signification;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSignification() {
        return signification;
    }

    public void setSignification(String signification) {
        this.signification = signification;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (code != null ? code.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CvStatuedepointage)) {
            return false;
        }
        CvStatuedepointage other = (CvStatuedepointage) object;
        if ((this.code == null && other.code != null) || (this.code != null && !this.code.equals(other.code))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fr.cggveritas.crewintranet.jms.entities.CvStatuedepointage[ code=" + code + " ]";
    }
    
}
